import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/CampusBinhai.vue'
// import StudentView from '../views/StudentView.vue'
// import student1 from '../views/Student1.vue'
// import student2 from '../views/Student2.vue'
import chashanview from '../views/CampusChashan.vue'
import chashan5 from '../views/chashan5.vue'
import chashan6 from '../views/chashan6.vue'
import chashan7 from '../views/chashan7.vue'
import yueqingview from '../views/CampusYueqing.vue'
import guanliview from '../views/StudentSystem.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/chashan',
    name: 'chashan',
    component: chashanview,
    children: [
      { path: 'chashan5', component: chashan5},
      { path: 'chashan6', component: chashan6},
      { path: 'chashan7', component: chashan7}
    ]
  },
  // {
  //   path: '/student',
  //   name: 'student',
  //   component: StudentView,
  //   children:[
  //     {path:'student1',component:student1},
  //     {path:'student2',component:student2}
  //   ]
  // },
  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: function () {
  //     return import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  //   }
  // }
  {
    path: '/yueqing',
    name: 'yueqing',
    component: yueqingview
  },
  {
    path: '/guanli',
    name: 'guanli',
    component: guanliview
  }

]

const router = new VueRouter({
  routes
})

export default router
